import request from '@/utils/request'

// 项目上下文路径
const base = ''

export function basePostRequest(url, data) {
  return request({
    url: base + url,
    method: 'post',
    data: data,
    showLoading: false
  })
}

export function connect(server_id) {
  return request({
    url: '/api/docker/server/connect',
    method: 'post',
    data: {
      server_id: server_id
    }
  })
}

export function disconnect(server_id) {
  return request({
    url: '/api/docker/server/disconnect',
    method: 'post',
    data: {
      server_id: server_id
    }
  })
}

export function server(form) {
  return request({
    url: '/api/docker/server/look',
    method: 'post',
    data: {
      docker_name: form.docker_name,
      docker_host: form.docker_host,
      docker_port: form.docker_port
    }
  })
}

export function sex() {
  return request({
    url: '/api/sys/dic/sex',
    method: 'post',
    data: {}
  })
}

export function user_type() {
  return request({
    url: '/api/sys/dic/user/type',
    method: 'post',
    data: {}
  })
}

export function restrict_platform() {
  return request({
    url: '/api/sys/dic/restrict/platform',
    method: 'post',
    data: {}
  })
}

export function app_look() {
  return request({
    url: '/api/sys/app/look',
    method: 'post',
    data: {}
  })
}

export function area() {
  return request({
    url: '/api/pajx/area/list',
    method: 'post',
    data: {}
  })
}

export function school(form) {
  return request({
    url: '/api/pajx/school/look',
    method: 'post',
    data: {
      area_code: form.area_code,
      county_code: form.county_code,
      keyword: form.keyword
    }
  })
}

export function equ_type_att() {
  return request({
    url: '/api/sys/dic/equ/type/att',
    method: 'post',
    data: {}
  })
}

export function att_type() {
  return request({
    url: '/api/sys/dic/att/type',
    method: 'post',
    data: {}
  })
}

export function att_inout() {
  return request({
    url: '/api/sys/dic/att/inout',
    method: 'post',
    data: {}
  })
}

export function equ_provider() {
  return request({
    url: '/api/sys/dic/equ/provider',
    method: 'post',
    data: {}
  })
}

export function equ_vendor() {
  return request({
    url: '/api/sys/dic/equ/vendor',
    method: 'post',
    data: {}
  })
}

export function equ_type_tel() {
  return request({
    url: '/api/sys/dic/equ/type/tel',
    method: 'post',
    data: {}
  })
}

export function equ_type_camera() {
  return request({
    url: '/api/sys/dic/equ/type/camera',
    method: 'post',
    data: {}
  })
}

export function gra(hxy_scl_id) {
  return request({
    url: '/api/pajx/gra/look',
    method: 'post',
    data: {
      hxy_scl_id: hxy_scl_id
    }
  })
}

export function camera_use_type() {
  return request({
    url: '/api/sys/dic/camera/use/type',
    method: 'post',
    data: {}
  })
}

export function camera_scheme() {
  return request({
    url: '/api/sys/dic/camera/scheme',
    method: 'post',
    data: {}
  })
}

export function equ_type_meal() {
  return request({
    url: '/api/sys/dic/equ/type/meal',
    method: 'post',
    data: {}
  })
}

export function equ_type_led() {
  return request({
    url: '/api/sys/dic/equ/type/led',
    method: 'post',
    data: {}
  })
}

export function stay_flag() {
  return request({
    url: '/api/sys/dic/stay/flag',
    method: 'post',
    data: {}
  })
}

export function card_type() {
  return request({
    url: '/api/sys/dic/card/type',
    method: 'post',
    data: {}
  })
}

export function tea_role() {
  return request({
    url: '/api/sys/dic/tea/role/scl',
    method: 'post',
    data: {}
  })
}

export function category() {
  return request({
    url: '/api/sys/dic/category',
    method: 'post',
    data: {}
  })
}

export function scl_type() {
  return request({
    url: '/api/sys/dic/sclType',
    method: 'post',
    data: {}
  })
}

export function product() {
  return request({
    url: '/api/pajx/product/look',
    method: 'post',
    data: {}
  })
}

export function biz_type() {
  return request({
    url: '/api/sys/dic/biz/type',
    method: 'post',
    data: {}
  })
}

export function marketing_type() {
  return request({
    url: '/api/sys/dic/marketing/type',
    method: 'post',
    data: {}
  })
}

export function card_issuer() {
  return request({
    url: '/api/sys/dic/card/issuer',
    method: 'post',
    data: {}
  })
}
